<%
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate, cached-pages"); // HTTP 1.1.
response.setHeader("Pragma", "no-cache"); // HTTP 1.0.
response.setDateHeader("Expires", 0); // Proxies.
%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/view.css" media="all">
</head>

<body id="main_body" >
<!-- 
I need these data from here:
`usertable`.`idusertable`, `usertable`.`firstname`, `usertable`.`lastname`, 
`usertable`.`email`, `usertable`.`password`, `usertable`.`isstudent`, 
`usertable`.`isemployer`, `usertable`.`city`, `usertable`.`state`, `usertable`.`zipcode`
 -->	

<!-- 
<s:form action="add" method="post">
	<s:textfield name="contact.firstName" label="Firstname"/>
	<s:textfield name="contact.lastName" label="Lastname"/>
	<s:textfield name="contact.emailId" label="Email"/>
	<s:textfield name="contact.cellNo" label="Cell No."/>
	<s:textfield name="contact.website" label="Homepage"/>
	<s:textfield name="contact.birthDate" label="Birthdate"/>
	<s:submit value="Add Contact" align="center"/>
</s:form>
 -->

	<img id="top" src="images/top.png" alt="">
	<div id="form_container">
	<div class="header">
		 <div id="mymenu" style="padding-left:10px">
		 <ul>

		 <li>
		 	<a class="color2" href="StudentHomeAction">Home</a>
		 
		 </li>
		 		 
		 <li>
		 	<a class="color2" href="searchjob.jsp">Search</a>
		 
		 </li>
		 
		 <li>
		 	<a class="color2" href="AppliedJobsAction">Applications</a>
		 
		 </li>
	
		 <li>
		 	<a class="color2" href="LogoutAction">Logout</a>
		 </li>
		 
		 </ul>

 		
       </div> 
        </div>
 
 	<s:form class="appnitro" >
	
		<div class="form_description">
			<h2>Search Results:</h2>
		</div>		
		<br><br>				
		<table id="results">
			<tr>
			<th>Job ID</th>
			<th>Title</th>
			<th>City</th>
			<th>Salary</th>
			<th></th>
			</tr>

		
    		<s:iterator value="searchResults">  
				<tr>
					<td><s:property value="%{jobid}"/></td>  
					<td><s:property value="%{title}"/></td>
					<td><s:property value="%{city}"/></td>
					<td><s:property value="%{salary}" /></td>
					<td><s:a href="jobDetails?id=%{jobid}">Details</s:a></td>
         		</tr>  
   			</s:iterator>
		</table> 

		</s:form>	
		<br><br><br><br>
		<div id="footer"><br/>
			©Team Bazinga

		</div>
	</div>
	<img id="bottom" src="register_files/bottom.png" alt="">
 
 
 </body>
</html>